package com.tistory.devdiaries.service;

import java.sql.SQLException;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.tistory.devdiaries.dao.HelloDao;
import com.tistory.devdiaries.dto.Test;

@Service("helloServiceImpl")
public class HelloServiceImpl implements HelloService {
	
	@Autowired
	HelloDao helloDao;

	public void setHelloDao(HelloDao helloDao) {
		this.helloDao = helloDao;
	}

	@Override
	public List<Test> getTestList() throws SQLException {
		System.out.println("getTestList()호출!!");
		
		return helloDao.getTestList();
	}

}
